package com.kingmed.kmss.common.idgenerator.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kingmed.kmss.common.idgenerator.IBizIdGeneratorService;
import com.kingmed.kmss.common.redis.service.IRedisIdGeneratorService;

@Service
public class BizIdGeneratorServiceImpl implements IBizIdGeneratorService {

	@Autowired
	private IRedisIdGeneratorService idGeneratorService;

	@Override
	public String generateTransactionId(String orgNo, String transactionType) {

		return idGeneratorService.generateTransactionNo(orgNo, transactionType);

	}

	@Override
	public String generateProcessBizKey(String bizType) {
		return idGeneratorService.generateProcessBizKey(bizType);
	}

}
